Google One Tap
Provides start, authenticate, and signOut methods for native Google One Tap authentication
Types
Link copied to clipboard
data class AuthenticateParameters(val data: Intent, val sessionDurationMinutes: UInt = Constants.DEFAULT_SESSION_TIME_MINUTES)
Content copied to clipboard
Data class used for wrapping parameters to authenticate a Google OneTap flow
Link copied to clipboard
data class StartParameters( val context: Activity, val clientId: String, val oAuthRequestIdentifier: Int, val autoSelectEnabled: Boolean = false)
Content copied to clipboard
Data class used for wrapping parameters to start a Google OneTap flow
Functions
Link copied to clipboard
abstract suspend fun authenticate(parameters: OAuth.GoogleOneTap.AuthenticateParameters): NativeOAuthResponse
Content copied to clipboard
abstract fun authenticate(parameters: OAuth.GoogleOneTap.AuthenticateParameters, callback: (NativeOAuthResponse) -> Unit)
Content copied to clipboard
Authenticate a Google OneTap login
Link copied to clipboard
abstract suspend fun start(parameters: OAuth.GoogleOneTap.StartParameters): Boolean
Content copied to clipboard
abstract fun start(parameters: OAuth.GoogleOneTap.StartParameters, callback: (Boolean) -> Unit)
Content copied to clipboard
Begin a Google OneTap login flow. Returns true if the flow was successfully initiated, false if not. If this returns false, it means the Google OneTap flow is not available (no play services on device or user signed out), and you can fallback to the ThirdParty/Legacy Google OAuth flow